﻿using System;
using System.Collections.Generic;
using System.Linq;
using Autodesk.Revit.DB;
using Autodesk.Revit.UI;
using YArchitech.Revit;
using HYElectricSystemDiagram.DataStruct;
using HYLightingEquipmentLay.CommonUtils;
using RegionSplittor.Utils;

namespace HYElectricSystemDiagram.TMethod
{
	internal class GetElectricInfo
	{
		public static ElecMachPara GetCurveAllElem(UIApplication app, Dictionary<string, string> DicNameSet)
		{
			new List<Element>();
			ElementClassFilter item = new ElementClassFilter(typeof(FamilyInstance));
			ElementClassFilter item2 = new ElementClassFilter(typeof(HostObject));
			List<ElementFilter> list = new List<ElementFilter>();
			ElementCategoryFilter item3 = new ElementCategoryFilter(BuiltInCategory.OST_ElectricalEquipment);
			((ICollection<ElementFilter>)list).Add(item3);
			item3 = new ElementCategoryFilter(BuiltInCategory.OST_MechanicalEquipment);
			((ICollection<ElementFilter>)list).Add(item3);
			item3 = new ElementCategoryFilter(BuiltInCategory.OST_ElectricalFixtures);
			((ICollection<ElementFilter>)list).Add(item3);
			((ICollection<ElementFilter>)list).Add(item);
			((ICollection<ElementFilter>)list).Add(item2);
			LogicalOrFilter logicalOrFilter = new LogicalOrFilter(list);
			FilteredElementCollector filteredElementCollector = new FilteredElementCollector(app.ActiveUIDocument.Document);
			filteredElementCollector.WherePasses(logicalOrFilter);
			List<Element> lstEle = filteredElementCollector.ToList<Element>();
			List<string> lstName = new List<string>();
			List<string> lstNameE = new List<string>();
			new List<FanPara>();
			List<Element> nameYN = GetElectricInfo.GetNameYN(lstEle, DicNameSet, out lstName, out lstNameE);
			if (nameYN.Count == 0)
			{
				return null;
			}
			ElecMachPara elecMachPara = new ElecMachPara();
			elecMachPara.lstElem = nameYN;
			elecMachPara.lstName = lstName;
			elecMachPara.lstNameE = lstNameE;
			List<Dictionary<int, List<Element>>> list2 = new List<Dictionary<int, List<Element>>>();
			foreach (Element ele in nameYN)
			{
				Dictionary<int, List<Element>> elementConnectorLoops = GetElectricInfo.GetElementConnectorLoops(app.ActiveUIDocument.Document, ele, true);
				list2.Add(elementConnectorLoops);
			}
			elecMachPara.lstDicElement = list2;
			return elecMachPara;
		}

		public static ElecMachPara GetCurveAllElem(UIApplication app, List<CurveLoop> lstCurve, Dictionary<string, string> DicNameSet)
		{
			ElementMulticategoryFilter categoryFilter = new ElementMulticategoryFilter(new List<BuiltInCategory>
			{
				(Autodesk.Revit.DB.BuiltInCategory)(-2001040),
				(Autodesk.Revit.DB.BuiltInCategory)(-2001140),
				(Autodesk.Revit.DB.BuiltInCategory)(-2001060)
			});
			double num = 3.2808398950131235;
			double viewProjectElevation = ViewOperator.GetViewProjectElevation(app.ActiveUIDocument.Document.ActiveView);
			Level level;
			if (!LevelUtils.GetUpMostNearLevel(app.ActiveUIDocument.Document, viewProjectElevation, out level))
			{
			}
			double num2 = level.Elevation - viewProjectElevation;
			num2 += num;
			List<Element> solidIntersectElement = ElementSelector.GetSolidIntersectElement(app.ActiveUIDocument.Document, lstCurve, XYZ.BasisZ, num2, categoryFilter);
			List<string> lstName = new List<string>();
			List<string> lstNameE = new List<string>();
			new List<FanPara>();
			List<Element> nameYN = GetElectricInfo.GetNameYN(solidIntersectElement, DicNameSet, out lstName, out lstNameE);
			if (nameYN.Count == 0)
			{
				return null;
			}
			ElecMachPara elecMachPara = new ElecMachPara();
			elecMachPara.lstElem = nameYN;
			elecMachPara.lstName = lstName;
			elecMachPara.lstNameE = lstNameE;
			List<Dictionary<int, List<Element>>> list = new List<Dictionary<int, List<Element>>>();
			foreach (Element ele in nameYN)
			{
				Dictionary<int, List<Element>> elementConnectorLoops = GetElectricInfo.GetElementConnectorLoops(app.ActiveUIDocument.Document, ele, true);
				list.Add(elementConnectorLoops);
			}
			elecMachPara.lstDicElement = list;
			return elecMachPara;
		}

		public static List<Element> GetNameYN(List<Element> lstEle, Dictionary<string, string> DicNameSet, out List<string> lstNamePara, out List<string> lstNameE)
		{
			lstNamePara = new List<string>();
			lstNameE = new List<string>();
			List<Element> list = new List<Element>();
			foreach (Element element in lstEle)
			{
				Parameter parameter = element.GetParameter("配电盘名称");
				if (parameter != null)
				{
					string text = parameter.AsString();
					if (text != null)
					{
						foreach (KeyValuePair<string, string> keyValuePair in DicNameSet)
						{
							if (text.Contains(keyValuePair.Key))
							{
								list.Add(element);
								lstNamePara.Add(keyValuePair.Value);
								lstNameE.Add(keyValuePair.Key);
								break;
							}
						}
					}
				}
			}
			return list;
		}

		public static List<ElecMachPara> GetClassify(Dictionary<string, string> DicNameSet, ElecMachPara lstElecMachPara)
		{
			List<ElecMachPara> list = new List<ElecMachPara>();
			if (lstElecMachPara == null || lstElecMachPara.lstElem.Count == 0)
			{
				return list;
			}
			List<string> list2 = new List<string>();
			foreach (KeyValuePair<string, string> keyValuePair in DicNameSet)
			{
				if (!list2.Contains(keyValuePair.Value))
				{
					list2.Add(keyValuePair.Value);
					ElecMachPara elecMachPara = new ElecMachPara();
					List<Element> list3 = new List<Element>();
					List<string> list4 = new List<string>();
					List<string> list5 = new List<string>();
					List<Dictionary<int, List<Element>>> list6 = new List<Dictionary<int, List<Element>>>();
					List<List<int>> list7 = new List<List<int>>();
					for (int i = 0; i < lstElecMachPara.lstElem.Count; i++)
					{
						string text = lstElecMachPara.lstName[i];
						string item = lstElecMachPara.lstNameE[i];
						if (keyValuePair.Value.Equals(text))
						{
							list3.Add(lstElecMachPara.lstElem[i]);
							list4.Add(text);
							list5.Add(item);
							list6.Add(lstElecMachPara.lstDicElement[i]);
							List<int> list8 = new List<int>();
							foreach (KeyValuePair<int, List<Element>> keyValuePair2 in lstElecMachPara.lstDicElement[i])
							{
								foreach (Element element in keyValuePair2.Value)
								{
									list8.Add(element.Id.IntegerValue);
								}
							}
							list7.Add(list8);
						}
					}
					if (list3.Count > 0)
					{
						elecMachPara.lstDicElement = list6;
						elecMachPara.lstElem = list3;
						elecMachPara.lstName = list4;
						elecMachPara.lstNameE = list5;
						elecMachPara.lstlstElementId = list7;
						list.Add(elecMachPara);
					}
				}
			}
			return list;
		}

		public static List<string> GetElectricMachi(Autodesk.Revit.DB.Document doc, int ElementId, string TypeName, WiringInstructions m_WiringInstructionsKit, string strNameElec)
		{
			List<string> list = new List<string>();
			string text = "0";
			Element element = doc.GetElement(new ElementId(ElementId));
			element.GetParameter("名称");
			if (m_WiringInstructionsKit == null)
			{
				list.Add(TypeName);
				list.Add("0kW");
				return list;
			}
			string text2 = m_WiringInstructionsKit.strTypeName;
			if (TypeName.Contains("消防风机"))
			{
				text2 = strNameElec;
			}
			if (text2.Contains("控制箱"))
			{
				text2 = text2.Replace("控制箱", "");
			}
			if (TypeName.Contains("消防风机") && text2.Contains("双速风机"))
			{
				string text3 = null;
				string text4 = null;
				bool flag = false;
				try
				{
					text3 = element.GetParameter("平时功率").AsValueString();
					text4 = element.GetParameter("消防功率").AsValueString();
					text3 = text3.Replace(" W", "");
					text4 = text4.Replace(" W", "");
				}
				catch
				{
					text3 = "0";
					text4 = "0";
					flag = true;
				}
				if (flag)
				{
					try
					{
						text3 = element.GetParameter("平时电机功率").AsValueString();
						text4 = element.GetParameter("消防电机功率").AsValueString();
						text3 = text3.Replace(" W", "");
						text4 = text4.Replace(" W", "");
					}
					catch
					{
						text3 = "0";
						text4 = "0";
					}
				}
				double num = double.Parse(text3);
				double num2 = double.Parse(text4);
				text = string.Concat(new object[]
				{
					Math.Round(num / 1000.0, 1),
					"/",
					Math.Round(num2 / 1000.0, 1),
					"kW"
				});
				list.Add("双速风机");
				list.Add(text);
				return list;
			}
			bool flag2 = false;
			try
			{
				text = element.GetParameter("功率").AsValueString();
				text = text.Replace(" W", "");
			}
			catch
			{
				flag2 = true;
			}
			if (flag2)
			{
				try
				{
					text = element.GetParameter("电机功率").AsValueString();
					text = text.Replace(" W", "");
				}
				catch
				{
					flag2 = false;
				}
			}
			text = Math.Round(double.Parse(text) / 1000.0, 1) + "kW";
			if (TypeName.Contains("消防风机"))
			{
				list.Add(text2);
			}
			else
			{
				list.Add(TypeName);
			}
			list.Add(text);
			return list;
		}

		public static double GetElectricMachi(Autodesk.Revit.DB.Document doc, int ElementId, string TypeName)
		{
			Element element = doc.GetElement(new ElementId(ElementId));
			element.GetParameter("名称");
			string text = "";
			if (!TypeName.Contains("双速风机"))
			{
				bool flag = false;
				try
				{
					text = element.GetParameter("功率").AsValueString();
					text = text.Replace(" W", "");
				}
				catch
				{
					flag = true;
				}
				if (flag)
				{
					try
					{
						text = element.GetParameter("电机功率").AsValueString();
						text = text.Replace(" W", "");
					}
					catch
					{
						text = "0";
					}
				}
				return double.Parse(text);
			}
			string text2 = null;
			string text3 = null;
			bool flag2 = false;
			try
			{
				text2 = element.GetParameter("平时功率").AsValueString();
				text3 = element.GetParameter("消防功率").AsValueString();
				text2 = text2.Replace(" W", "");
				text3 = text3.Replace(" W", "");
			}
			catch
			{
				text2 = "0";
				text3 = "0";
				flag2 = true;
			}
			if (flag2)
			{
				try
				{
					text2 = element.GetParameter("平时电机功率").AsValueString();
					text3 = element.GetParameter("消防电机功率").AsValueString();
					text2 = text2.Replace(" W", "");
					text3 = text3.Replace(" W", "");
				}
				catch
				{
					text2 = "0";
					text3 = "0";
				}
			}
			double num = double.Parse(text2);
			double num2 = double.Parse(text3);
			if (num > num2)
			{
				return num;
			}
			return num2;
		}

		public static double GetPower(Autodesk.Revit.DB.Document doc, Element elem, bool DoubleSwich)
		{
			if (!DoubleSwich)
			{
				double result = 0.0;
				try
				{
					string text = elem.GetParameter("功率").AsValueString();
					if (text.Contains("W"))
					{
						text = text.Replace("W", "");
					}
					if (!string.IsNullOrEmpty(text))
					{
						result = double.Parse(text);
						return result;
					}
				}
				catch
				{
					result = 0.0;
				}
				try
				{
					string text2 = elem.GetParameter("平时功率").AsValueString();
					if (text2.Contains("W"))
					{
						text2 = text2.Replace("W", "");
					}
					if (!string.IsNullOrEmpty(text2))
					{
						result = double.Parse(text2);
						return result;
					}
				}
				catch
				{
					result = 0.0;
				}
				try
				{
					string text3 = elem.GetParameter("平时电机功率").AsValueString();
					if (text3.Contains("W"))
					{
						text3 = text3.Replace("W", "");
					}
					if (!string.IsNullOrEmpty(text3))
					{
						result = double.Parse(text3);
						return result;
					}
				}
				catch
				{
					result = 0.0;
				}
				return result;
			}
			string text4 = null;
			string text5 = null;
			bool flag = false;
			try
			{
				text4 = elem.GetParameter("平时功率").AsValueString();
				text5 = elem.GetParameter("消防功率").AsValueString();
				text4 = text4.Replace(" W", "");
				text5 = text5.Replace(" W", "");
			}
			catch
			{
				text4 = "0";
				text5 = "0";
				flag = true;
			}
			if (flag)
			{
				try
				{
					text4 = elem.GetParameter("平时电机功率").AsValueString();
					text5 = elem.GetParameter("消防电机功率").AsValueString();
					text4 = text4.Replace(" W", "");
					text5 = text5.Replace(" W", "");
				}
				catch
				{
					text4 = "0";
					text5 = "0";
				}
			}
			double num = double.Parse(text4);
			double num2 = double.Parse(text5);
			if (num > num2)
			{
				return num;
			}
			return num2;
		}

		public static Dictionary<int, List<Element>> GetElementConnectorLoops(Autodesk.Revit.DB.Document doc, Element ele, bool bl = true)
		{
			Dictionary<int, List<Element>> dictionary = new Dictionary<int, List<Element>>();
			if (ele == null)
			{
				return dictionary;
			}
			bool bl2 = false;
			Parameter parameter = ele.GetParameter("配电盘名称");
			if (parameter != null)
			{
				string text = parameter.AsString();
				if (!string.IsNullOrEmpty(text))
				{
					foreach (KeyValuePair<string, string> keyValuePair in GetXmlData.GetNamSet())
					{
						if (keyValuePair.Value.Contains("双速风机") && text.Contains(keyValuePair.Key))
						{
							bl2 = true;
							break;
						}
					}
				}
			}
			List<Element> splitGroupElement = GetElectricInfo.GetSplitGroupElement(doc, ele);
			List<ElementId> list = new List<ElementId>();
			list.Add(ele.Id);
			for (int i = 0; i < splitGroupElement.Count; i++)
			{
				Element element = splitGroupElement[i];
				if (!(element.Category.Name != "导线"))
				{
					list.Add(element.Id);
					List<Element> list2 = new List<Element>();
					List<Element> list3 = new List<Element>();
					using (List<Connector>.Enumerator enumerator2 = GetElectricInfo.GetElementConnectors(doc, element).GetEnumerator())
					{
						while (enumerator2.MoveNext())
						{
							Connector connector = enumerator2.Current;
							Element connectNextElement = GetElectricInfo.GetConnectNextElement(connector, list);
							if (connectNextElement != null)
							{
								list3.Add(connectNextElement);
								list.Add(connectNextElement.Id);
								if (connectNextElement is FamilyInstance)
								{
									list2.Add(connectNextElement);
								}
							}
						}
						goto IL_211;
					}
					goto IL_153;
					IL_211:
					if (list3.Count <= 0)
					{
						if (list2.Count > 0)
						{
							dictionary.Add(i, list2);
							goto IL_232;
						}
						goto IL_232;
					}
					IL_153:
					List<Element> list4 = new List<Element>();
					foreach (Element ele2 in list3)
					{
						foreach (Connector connector2 in GetElectricInfo.GetElementConnectors(doc, ele2))
						{
							Element connectNextElement2 = GetElectricInfo.GetConnectNextElement(connector2, list);
							if (connectNextElement2 != null)
							{
								list4.Add(connectNextElement2);
								list.Add(connectNextElement2.Id);
								if (connectNextElement2 is FamilyInstance)
								{
									list2.Add(connectNextElement2);
								}
							}
						}
					}
					if (list4.Count > 0)
					{
						list3.Clear();
						list3.AddRange(list4);
						goto IL_211;
					}
					list3.Clear();
					goto IL_211;
				}
				IL_232:;
			}
			if (!bl)
			{
				return dictionary;
			}
			return GetElectricInfo.GetElement(doc, dictionary, bl2);
		}

		private static Dictionary<int, List<Element>> GetElement(Autodesk.Revit.DB.Document doc, Dictionary<int, List<Element>> lst, bool bl)
		{
			List<Element> list = new List<Element>();
			foreach (KeyValuePair<int, List<Element>> keyValuePair in lst)
			{
				list.AddRange(keyValuePair.Value);
			}
			for (int i = 0; i < list.Count; i++)
			{
				for (int j = 0; j < list.Count - 1 - i; j++)
				{
					double power = GetElectricInfo.GetPower(doc, list[j], bl);
					double power2 = GetElectricInfo.GetPower(doc, list[j + 1], bl);
					if (power > power2)
					{
						Element value = list[j + 1];
						list[j + 1] = list[j];
						list[j] = value;
					}
				}
			}
			lst.Clear();
			for (int k = 0; k < list.Count; k++)
			{
				lst.Add(k, new List<Element>
				{
					list[k]
				});
			}
			return lst;
		}

		private static List<Element> GetSplitGroupElement(Autodesk.Revit.DB.Document doc, Element ele)
		{
			List<Element> list = new List<Element>();
			foreach (Connector connector in GetElectricInfo.GetElementConnectors(doc, ele))
			{
				Element owner = connector.Owner;
				if (owner != null)
				{
					list.Add(owner);
				}
			}
			return list;
		}

		private static List<Connector> GetElementConnectors(Autodesk.Revit.DB.Document doc, Element ele)
		{
			List<Connector> list = new List<Connector>();
			ConnectorSet connectorSet = null;
			if (ele is FamilyInstance)
			{
				connectorSet = (ele as FamilyInstance).MEPModel.ConnectorManager.Connectors;
			}
			else if (ele is MEPCurve)
			{
				connectorSet = (ele as MEPCurve).ConnectorManager.Connectors;
			}
			if (connectorSet == null)
			{
				return list;
			}
			foreach (object obj in connectorSet)
			{
				Connector connector = (Connector)obj;
				if (connector.AllRefs.Size >= 1)
				{
					foreach (object obj2 in connector.AllRefs)
					{
						Connector item = (Connector)obj2;
						list.Add(item);
					}
				}
			}
			return list;
		}

		private static Element GetConnectNextElement(Connector connector, List<ElementId> lstHasConnectId)
		{
			Element result = null;
			if (!lstHasConnectId.Contains(connector.Owner.Id))
			{
				result = connector.Owner;
			}
			return result;
		}

		public static List<ElectricBoxData> GetElectricBoxData(Autodesk.Revit.DB.Document doc, List<CurveLoop> lstCurve)
		{
			List<ElectricBoxData> list = new List<ElectricBoxData>();
			foreach (KeyValuePair<string, Element> keyValuePair in GetElectricInfo.GetDocElectricBox(doc, lstCurve))
			{
				string text = keyValuePair.Key;
				if (text.Contains("找不到配电盘名称"))
				{
					text = " ";
				}
				Element value = keyValuePair.Value;
				Dictionary<int, List<Element>> elementConnectorLoops = GetElectricInfo.GetElementConnectorLoops(doc, value, false);
				if (elementConnectorLoops != null && elementConnectorLoops.Count >= 1)
				{
					List<HouseBoxLoopData> list2 = new List<HouseBoxLoopData>();
					foreach (KeyValuePair<int, List<Element>> keyValuePair2 in elementConnectorLoops)
					{
						HouseBoxLoopData item;
						if (GetElectricInfo.GetLoopDataByLoopDev(keyValuePair2.Value, out item))
						{
							list2.Add(item);
						}
					}
					HouseBoxLoopData item2 = new HouseBoxLoopData("备注", elementConnectorLoops.Last<KeyValuePair<int, List<Element>>>().Value);
					list2.Add(item2);
					ElectricBoxData item3 = new ElectricBoxData(text, value, list2);
					list.Add(item3);
				}
			}
			return list;
		}

		private static Dictionary<string, Element> GetDocElectricBox(Autodesk.Revit.DB.Document doc, List<CurveLoop> lstCurve)
		{
			List<string> list = new List<string>();
			list.Add("照明配电箱");
			list.Add("住宅家居配电箱");
			list.Add("家居配电箱");
			Dictionary<string, Element> dictionary = new Dictionary<string, Element>();
			if (lstCurve == null)
			{
				FilteredElementCollector filteredElementCollector = new FilteredElementCollector(doc);
				filteredElementCollector.OfCategory(BuiltInCategory.OST_ElectricalEquipment);
				filteredElementCollector.WhereElementIsNotElementType();
				IEnumerator<Element> enumerator = filteredElementCollector.GetEnumerator();
				{
					while (enumerator.MoveNext())
					{
						Element element = enumerator.Current;
						if (element is FamilyInstance)
						{
							FamilyInstance familyInstance = element as FamilyInstance;
							string item = familyInstance.Symbol.Family.Name;
							if (!list.Contains(item))
							{
								item = element.GetParameter("名称").AsString();
								if (!list.Contains(item))
								{
									continue;
								}
							}
							string text = familyInstance.get_Parameter(BuiltInParameter.RBS_ELEC_PANEL_NAME).AsString();
							if (string.IsNullOrEmpty(text))
							{
								text = "找不到配电盘名称" + (dictionary.Count + 1);
							}
							if (!dictionary.Keys.Contains(text))
							{
								dictionary.Add(text, element);
							}
						}
					}
					return dictionary;
				}
			}
			ElementMulticategoryFilter categoryFilter = new ElementMulticategoryFilter(new List<BuiltInCategory>
			{
				(Autodesk.Revit.DB.BuiltInCategory)(-2001040)
			});
			double num = 3.2808398950131235;
			double viewProjectElevation = ViewOperator.GetViewProjectElevation(doc.ActiveView);
			Level level;
			if (!LevelUtils.GetUpMostNearLevel(doc, viewProjectElevation, out level))
			{
			}
			double num2 = level.Elevation - viewProjectElevation;
			num2 += num;
			foreach (Element element2 in ElementSelector.GetSolidIntersectElement(doc, lstCurve, XYZ.BasisZ, num2, categoryFilter))
			{
				if (element2 is FamilyInstance)
				{
					FamilyInstance familyInstance2 = element2 as FamilyInstance;
					string item2 = familyInstance2.Symbol.Family.Name;
					if (!list.Contains(item2))
					{
						item2 = element2.GetParameter("名称").AsString();
						if (!list.Contains(item2))
						{
							continue;
						}
					}
					string text2 = familyInstance2.get_Parameter(BuiltInParameter.RBS_ELEC_PANEL_NAME).AsString();
					if (text2 == null)
					{
						text2 = "找不到配电盘名称" + (dictionary.Count + 1);
					}
					if (!dictionary.Keys.Contains(text2))
					{
						dictionary.Add(text2, element2);
					}
				}
			}
			return dictionary;
		}

		private static bool GetLoopDataByLoopDev(List<Element> lstDev, out HouseBoxLoopData loopData)
		{
			bool flag = false;
			loopData = null;
			string strUse = "照明";
			new List<string>();
			foreach (Element element in lstDev)
			{
				if (element is FamilyInstance && element.Category.Id.IntegerValue == -2001060)
				{
					string name = (element as FamilyInstance).Symbol.Family.Name;
					flag = true;
					break;
				}
				if (element is FamilyInstance && element.Category.Id.IntegerValue == -2001120)
				{
					string name2 = (element as FamilyInstance).Symbol.Family.Name;
					flag = true;
					break;
				}
			}
			if (flag)
			{
				loopData = new HouseBoxLoopData(strUse, lstDev);
			}
			return flag;
		}

		private static string m_strFirstLevelName = "TH-带防护门单相三极柜式空调插座";

		private static string m_strSecondLevelName = "TH-带防护门单相三极壁挂式空调插座";

		private static string m_strThirdLevelName = "TH-单相二极和三极插座(带防护门)+防溅面盖-暗装（卫生间排气扇）";

		private static string m_strFourthLevelName = "TH-单相二极和三极插座(带防护门)-暗装（厨房脱排油烟机）";

		private static string m_strFifthLevelNameOrOne = "TH-单相二极和三极插座(带防护门)-一般场所用";

		private static string m_strFifthLevelNameOrTwo = "TH-单相三极插座-暗装";

		private static string m_strSixthLevelNameOrOne = "TH-吸顶灯";

		private static string m_strSixthLevelNameOrTwo = "TH-半球吸顶灯";

		private static string m_strSixthLevelNameOrThree = "TH-筒灯-嵌装";

		private static string m_strWaterPumpAPF = "APf";

		private static string m_strWaterPumpAPEF = "APEf";

		private static string m_strElecricPanName = "配电盘名称";

		private static string m_strFuncType = "功能类型";

		private static string m_strElectricPower = "电机功率";

		private static string m_strCommonElectricPower = "平时电机功率";

		private static string m_strFireElectricPower = "消防电机功率";

		private static string m_strWaterPumpPower = "水泵功率";

		private static string m_strLampPower = "功率";
	}
}
